package com.trade.data.type;


public enum CandleStickPatterns{
	BIG_BLACK_CANDLE(1,"BIG_BLACK_CANDLE","SIMPLE","BEARISH"),
	BIG_WHITE_CANDLE(2,"BIG_WHITE_CANDLE","SIMPLE","BULLISH"),
	BLACK_BODY(3,"BLACK_BODY","SIMPLE","BEARISH"),
	DOJI(4,"DOJI","SIMPLE",""),
	DRAGON_FLY_DOJI(5,"DRAGON_FLY_DOJI","SIMPLE","BULLISH"),
	GRAVESTONE_FLY_DOJI(6,"GRAVESTONE_FLY_DOJI","SIMPLE","BEARISH"),
	LONG_LEGGED_DOJI(7,"LONG_LEGGED_DOJI","SIMPLE",""),
	HANGING_MAN(8,"LONG_LEGGED_DOJI","SIMPLE","BEARISH"),
	HAMMER(9,"HAMMER","SIMPLE","BULLISH"),
	INVERTED_BLACK_HAMMER(10,"INVERTED_BLACK_HAMMER","SIMPLE",""),
	INVERTED_HAMMER(11,"INVERTED_HAMMER","SIMPLE",""),
	LONG_LOWER_SHADOW(12,"LONG_LOWER_SHADOW","SIMPLE","BULLISH"),
	LONG_UPPER_SHADOW(13,"LONG_UPPER_SHADOW","SIMPLE","BEARISH"),
	MARUBONI(14,"MARUBONI","SIMPLE","CONTINUE"),
	SHOOTING_STAR(15,"SHOOTING_STAR","SIMPLE","BEARISH"),
	SPINNING_TOP(16,"SPINNING_TOP","SIMPLE","NEUTRAL"),
	WHITE_BODY(17,"WHITE_BODY","SIMPLE","BULLISH"),
	SHAVEN_BOTTOM(18,"SHAVEN_BOTTOM","SIMPLE",""),
	SHAVEN_HEAD(19,"SHAVEN_HEAD","SIMPLE",""),

	//Complex Pattern
	BEARISH_HARAMI(20,"BEARISH_HARAMI","COMPLEX","BEARISH"),
	BEARISH_HARAMI_CROSS(21,"BEARISH_HARAMI_CROSS","COMPLEX","REVERSAL"),
	BEARISH_3_METHOD_FORMATION(22,"BEARISH_3_METHOD_FORMATION","COMPLEX","BEARISH"),  //BEARISH CONTINUATION
	BULLISH_3_METHOD_FORMATION(23,"BULLISH_3_METHOD_FORMATION","COMPLEX","BULLISH"),  //BULLISH CONTINUATION

	BULLISH_HARAMI(24,"BULLISH_HARAMI","COMPLEX","BULLISH"),
	BULLISH_HARAMI_CROSS(25,"BULLISH_HARAMI_CROSS","COMPLEX","BULLISH"),

	DARK_CLOUD_COVER(26,"DARK_CLOUD_COVER","COMPLEX","BEARISH"),
	ENGULFING_BEARISH_LINE(27,"ENGULFING_BEARISH_LINE","COMPLEX","REVERSAL"),
	ENGULFING_BULLISH_LINE(28,"ENGULFING_BULLISH_LINE","COMPLEX","REVERSAL"),

	EVENING_DOJI_STAR(29,"EVENING_DOJI_STAR","COMPLEX","BEARISH"),
	EVENING_STAR(30,"EVENING_STAR","COMPLEX","REVERSAL"),
	FALLING_WINDOW(31,"FALLING_WINDOW","COMPLEX",""),

	MORNING_DOJI_STAR(32,"MORNING_DOJI_STAR","COMPLEX","REVERSAL"),
	MORNING_STAR(33,"MORNING_STAR","COMPLEX","REVERSAL"),

	ON_NECKLINE(34,"ON_NECKLINE","COMPLEX","BEARISH"),
	THREE_BLACK_CROWS(35,"THREE_BLACK_CROWS","COMPLEX","TOP_REVERSAL"),
	THREE_WHITE_SOLDIERS(36,"THREE_WHITE_SOLDIERS","COMPLEX","BOTTOM_REVERSAL"),
	TWEEZER_BOTTOMS(37,"TWEEZER_BOTTOMS","COMPLEX","REVERSAL"),

	TWEEZER_TOPS(38,"TWEEZER_TOPS","COMPLEX","REVERSAL"),
	DOJI_STAR(39,"DOJI_STAR","COMPLEX","REVERSAL"),
	PIERCING_LINE(40,"PIERCING_LINE","COMPLEX","BOTTOM_REVERSAL"),

	RISING_WINDOW(41,"RISING_WINDOW","COMPLEX","SELLING_SUPPORT");


	int id;
	String name;
	String type;
	String pattern;

	CandleStickPatterns(int id , String name,String type,String pattern){
		this.id = id;
		this.name = name;
		this.type = type;
		this.pattern = pattern;
	}


	public int getId(){
		return this.id;
	}

	public String getPattern(){
		return this.pattern;
	}

	public static CandleStickPatterns getById(int value){
		for(CandleStickPatterns type : CandleStickPatterns.values()){
			if( type.getId()== value ){
				return type;
			}
		}

		return null;
	}

}